Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YUNIKORN-2205] remove the warning of processing nonexistent "namespa… #747

Closed
wants to merge 2 commits into from

Conversation

Haser0305
Copy link
Contributor

What is this PR for?

The warning message is printed when "namespace.guaranteed" does not exist. This PR checking if the "namespaceGuaranteed" value is empty and returning early to avoid the warning message. This ensures that the warning is not displayed when the expected behavior occurs.

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-2205

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

codecov bot commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2738571) 69.43% compared to head (a686124) 69.51%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #747      +/-   ##
==========================================
+ Coverage   69.43%   69.51%   +0.07%     
==========================================
  Files          50       50              
  Lines        7993     7994       +1     
==========================================
+ Hits         5550     5557       +7     
+ Misses       2254     2249       -5     
+ Partials      189      188       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pbacsko pbacsko self-requested a review December 7, 2023 22:26
Copy link
Contributor

@pbacsko pbacsko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: please add coverage in utils_test.go

pkg/common/utils/utils.go Outdated Show resolved Hide resolved
Copy link
Contributor

@zhuqi-lucas zhuqi-lucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants